package bb.lanxing.model.lushu;

import bb.lanxing.model.map.GeoPoint;

public class WayPointImpl extends GeoPoint implements WayPoint {
    String address;
    String content;
    String image;
    int index;
    int status;
    Object tag;
    String title;
    int wayPointType;

    public WayPointImpl(WayPointBuilderImpl builder) {
        super(builder.type, builder.lat, builder.lng);
        this.index = builder.index;
        this.address = builder.address;
        this.title = builder.title;
        this.content = builder.content;
        this.wayPointType = builder.wayPointType;
        this.status = builder.status;
        this.tag = builder.tag;
        this.image = builder.image;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setWayPointType(int wayPointType) {
        this.wayPointType = wayPointType;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public void setTag(Object tag) {
        this.tag = tag;
    }

    @Override
    public String getAddress() {
        return this.address;
    }

    @Override
    public String getTitle() {
        return this.title;
    }

    @Override
    public String getContent() {
        return this.content;
    }

    @Override
    public String getImage() {
        return this.image;
    }

    @Override
    public int getWayPointType() {
        return this.wayPointType;
    }

    @Override
    public int getStatus() {
        return this.status;
    }

    @Override
    public Object getTag() {
        return this.tag;
    }

    @Override
    public WayPointBuilder newBuilder() {
        return new WayPointBuilderImpl(this);
    }
    public String toString() {
        return getLatitude() + "," + getLongitude();
    }
}
